package cn.shop.utils.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 支付通道类型
 *
 * @author jzw
 * @since 2021-12-13 10:58
 */
public enum PaymentChannel {

	ALIPAY_PAYMENT(1, "ali_scan", "支付宝扫码支付"),
	WX_PAYMENT(2, "wx_scan", "微信扫码支付");


	@EnumValue
	private final int code;

	@JsonValue
	private final String value;

	private final String description;

	PaymentChannel(int code, String value, String description) {
		this.code = code;
		this.value = value;
		this.description = description;
	}

	public int getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}
}
